package com.ygqh.baby.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ygqh.baby.mapper.YgOrderMapper;
import com.ygqh.baby.model.YgOrderInfoModel;
import com.ygqh.baby.model.YgOrderModel;
import com.ygqh.baby.service.YgOrderService;

@Service
public class YgOrderServiceImpl implements YgOrderService {
	
	@Autowired
	private YgOrderMapper ygOrderMapper;

	@Override
	public List<YgOrderModel> findOrderList(Long userId) {
		return ygOrderMapper.selectOrderList(userId);
	}

	@Override
	public YgOrderInfoModel findOrderInfo(Long orderId) {
		return ygOrderMapper.selectOrderInfo(orderId);
	}

}
